<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>主页</title>
    <style>
        table {
             margin: 0 auto;
             border-collapse:collapse;
             width: 80%;
             border: 1px solid #ddd;
         }
        td {
            height: 40px;
            text-align:center;
            vertical-align:middle;
            border: 1px solid #996;
        }
    </style>
</head>
<body>
    <table>
        <tr>
            <td>#</td>
            <td>lastName</td>
            <td>email</td>
            <td>gender</td>
            <td>deptName</td>
            <td>操作</td>
        </tr>

        <c:forEach items="${list}" var="student" >
            <tr>
                <td>${student.id}</td>
                <td>${student.lastName}</td>
                <td>${student.email}</td>
                <td>${student.gender}</td>
                <td>${student.deptName}</td>
                <td><a href="#">编辑</a></td>
            </tr>
        </c:forEach>
    </table>

</body>
</html>
